/*******************************************************************************
 * Copyright (c) 2011 Jovansonlee B. Cesar.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * 
 * Contributors:
 *     Jovansonlee B. Cesar - initial API and implementation
 ******************************************************************************/
package com.ivanceras.shared.db;

import java.util.HashMap;

public class DAO{

	protected HashMap<String, Object> properties = new HashMap<String, Object>();

	private String modelName;
	
	
	public DAO(String modelName){
		this.modelName = modelName;
	}
	
	public String getModelName(){
		return modelName;
	}
	

	public void set_Value(String attribute, Object value){
		properties.put(attribute, value);
	}

	public Object get_Value(String attribute){
		return properties.get(attribute);
	}
	
	protected void setProperties(HashMap<String, Object> properties){
		this.properties = properties;
	}
	
	public HashMap<String, Object> getProperties(){
		return properties;
	}
}
